package com.yaowk.sfp.eoms.server.service.impl;

import com.yaowk.sfp.eoms.api.model.NotifyTarget;
import com.yaowk.sfp.eoms.server.entity.EomsNotifyTarget;
import com.yaowk.sfp.eoms.server.service.impl.base.NotifyTargetServiceBase;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class NotifyTargetServiceImpl extends NotifyTargetServiceBase {

    @Override
    public List<String> findAllOfTarget(NotifyTarget model) {
        List<NotifyTarget> list = findAll(model);
        List<String> targets = new ArrayList<String>();
        for (NotifyTarget notifyTarget : list) {
            targets.add(notifyTarget.getTarget());
        }
        return targets;
    }

}